import request from '@/utils/request'

// 查询sw模板分类列表
export function listSwTempCategory(query) {
  return request({
    url: '/swTempCategory/swTempCategory/list',
    method: 'get',
    params: query
  })
}

// 查询sw模板分类详细
export function getSwTempCategory(id) {
  return request({
    url: '/swTempCategory/swTempCategory/' + id,
    method: 'get'
  })
}

// 新增sw模板分类
export function addSwTempCategory(data) {
  return request({
    url: '/swTempCategory/swTempCategory',
    method: 'post',
    data: data
  })
}

// 修改sw模板分类
export function updateSwTempCategory(data) {
  return request({
    url: '/swTempCategory/swTempCategory',
    method: 'put',
    data: data
  })
}

// 删除sw模板分类
export function delSwTempCategory(id) {
  return request({
    url: '/swTempCategory/swTempCategory/' + id,
    method: 'delete'
  })
}
